File

public final static File File(Path path, MimeType mimeType, String name)
public final static File File(Path path, MimeType mimeType, String name)

Creates a new instance of File based on the given path.

Since

8.0.0

Parameters

path

The file path.

mimeType

MIME type of the file content. If not passed, Chromium will automatically determine the type based on the file extension. If no MIME type is associated with the extension, the content type defaults to application/octet-stream.

name

The file name.


public final static File File(ByteArray bytes, MimeType mimeType, String name)
public final static File File(ByteArray bytes, MimeType mimeType, String name)

Creates a new instance of File based on the given bytes array.

Since

8.0.0

Parameters

bytes

The file content.

mimeType

MIME type of the file content.

name

The file name.


public final static File File()
public final static File File()

Creates an empty File.

Since

8.0.0